// vite.config.ts
import { defineConfig } from "file:///Users/muze/Gitee/sofile-web-page/node_modules/_vite@4.5.14@vite/dist/node/index.js";
import vue from "file:///Users/muze/Gitee/sofile-web-page/node_modules/_@vitejs_plugin-vue@4.6.2@@vitejs/plugin-vue/dist/index.mjs";
import { createSvgIconsPlugin } from "file:///Users/muze/Gitee/sofile-web-page/node_modules/_vite-plugin-svg-icons@2.0.1@vite-plugin-svg-icons/dist/index.mjs";
import path from "path";
import { VitePWA } from "file:///Users/muze/Gitee/sofile-web-page/node_modules/_vite-plugin-pwa@1.0.1@vite-plugin-pwa/dist/index.js";
var __vite_injected_original_dirname = "/Users/muze/Gitee/sofile-web-page";
var vite_config_default = defineConfig({
  plugins: [
    vue(),
    createSvgIconsPlugin({
      // 指定需要缓存的图标文件夹
      iconDirs: [path.resolve(process.cwd(), "src/assets/brand_svg_logo")],
      // 指定symbolId格式
      symbolId: "icon-[dir]-[name]"
      /**
       * 自定义插入位置
       * @default: body-last
       */
      // inject?: 'body-last' | 'body-first'
      /**
       * custom dom id
       * @default: __svg__icons__dom__
       */
      // customDomId: '__svg__icons__dom__',
    }),
    VitePWA({
      // 插件配置项
      manifest: {
        name: "SoFile \u5BFC\u822A\u7AD9",
        description: "\u4E00\u4E2A\u7B80\u5355\u4F7F\u7528\u7684\u5FEB\u901F\u5F15\u5BFC\u7AD9\u70B9",
        theme_color: "#242424",
        // 为了方便，使用svg图标
        icons: [
          {
            src: "/logo.svg",
            sizes: "192x192",
            type: "image/svg+xml"
          },
          {
            src: "/logo.svg",
            sizes: "512x512",
            type: "image/svg+xml"
          }
        ]
      },
      devOptions: {
        // 如果想在`vite dev`命令下调试PWA, 必须启用它
        enabled: true,
        // Vite在dev模式下会使用浏览器原生的ESModule，将type设置为`"module"`与原先的保持一致
        type: "module"
      },
      //下次更新
      registerType: "autoUpdate"
    })
  ],
  resolve: {
    alias: {
      "@": path.resolve(__vite_injected_original_dirname, "src")
    }
  },
  build: {
    sourcemap: true
    //保留映射关系，方便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